<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddPayLogId extends Migrator
{
    public function up()
    {
        $this->table('coupon_order')
            ->addColumn('pay_log_id', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '支付id'])
            ->update();

    }

    public function down()
    {
        $this->table('coupon_order')
            ->removeColumn('pay_log_id');

    }
}
